//
//  TTSendBottomToShopView.m
//  TaoTuo
//
//  Created by LG on 2020/8/15.
//  Copyright © 2020 刘广. All rights reserved.
//

#import "TTSendBottomToShopView.h"

@interface TTSendBottomToShopView()

@property (weak, nonatomic) IBOutlet UILabel *timeLabel;
@property (weak, nonatomic) IBOutlet UILabel *shopNameLabel;

@end

@implementation TTSendBottomToShopView

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        
        self.backgroundColor = [UIColor cyanColor];
        
    }
    return self;
}

- (void)setModel:(TTSendStoreListModel *)model
{
    _model = model;
    self.shopNameLabel.text = model.storeName;
}


- (void)setTime:(NSString *)time
{
    _time = time;
    self.timeLabel.text = time;
}


- (IBAction)chooseShopNameClick:(id)sender {
    
    if (self.chooseShopBlock) {
        self.chooseShopBlock(self);
    }
}


- (IBAction)chooseTimeClick:(id)sender {

    if (self.chooseTimeBlock) {
        self.chooseTimeBlock(self);
    }

}


@end
